package com.woniuxy.micromedicalserver.doctormanage.service.impl;

import com.woniuxy.micromedicalserver.bean.DoctorBean;
import com.woniuxy.micromedicalserver.doctormanage.mapper.DoctorMapper;
import com.woniuxy.micromedicalserver.doctormanage.service.IDoctorService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(readOnly = true)
public class DoctorServiceImpl implements IDoctorService {
    @Resource
    private DoctorMapper doctorMapperImpl;

    @Override
    public DoctorBean selectByID(Integer ID) {
        return doctorMapperImpl.selectByID(ID);
    }

    @Override
    public List<DoctorBean> selectAll(DoctorBean doctorBean) {
        return doctorMapperImpl.selectAll(doctorBean);
    }
}
